import httpInstance from '@/utils/http.js'

/**
 * 获取订单
 * @param {*} id 
 * @returns 
 */
export const getOrderAPI = (id) =>{
  return httpInstance({
    url: `/member/order/${id}`,
  })
} 

/**
 * 我的订单
 * @param {*} param { orderState:0, page:1, pageSize:2 }
 * @returns 
 */
export const getUserOrder = (param) =>{
  return httpInstance({
    url: '/member/order',
    methods: 'GET',
    param
  })
}